#!/usr/bin/env python
# coding=utf-8
# __author__ = 'Yunchao Ling'

import sys

uniqlist = set()
infile = open(sys.argv[1], "r")
outfile = open(sys.argv[1] + ".uniq", "w")
for line in infile:
    line = line.rstrip()
    uniqlist.add(line)
infile.close()
for item in uniqlist:
    outfile.write(item + "\n")
    outfile.flush()
outfile.close()
